package com.bitrate.dagger.server.websocket.loader;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 容器初始化加载
 */
@Component
public class ContextInitLoader implements ApplicationRunner {

//	@Autowired
//	private SystemSocketAuthMapper systemSocketAuthMapper;

	@Override
	public void run(ApplicationArguments args) throws Exception {
		// 数据库中所有授权服务的CommonKey
//		List<SystemSocketAuth> clientAuthDbArr = systemSocketAuthMapper.selectList(Wrappers.emptyWrapper());
//		if (CollUtil.isNotEmpty(clientAuthDbArr)) {
//			List<String> commonKeyArr = clientAuthDbArr.stream().map(e -> e.getCommonKey())
//					.collect(Collectors.toList());
//			LocalCache.add(commonKeyArr);
//		}
	}

}
